package edu.fmi.st.epf.types.projectmember.ui.extension;

import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.epf.library.edit.ILibraryItemProvider;
import org.eclipse.epf.uma.ContentPackage;

import edu.fmi.st.epf.types.projectmember.common.util.ProjectMemberHelper;
import edu.fmi.st.epf.types.projectmember.ui.i18n.ProjectMemberUIResources;
import edu.fmi.st.epf.types.projectmember.ui.provider.ProjectMembersCategoryItemProvider;
import eu.tanov.epf.itemprovider.extension.AbstractExtendedItemProvider;
import eu.tanov.epf.itemprovider.extension.ExtendedItemProvider;

public class ProjectMemberExtendedItemProvider extends
		AbstractExtendedItemProvider implements ExtendedItemProvider {

	public ProjectMemberExtendedItemProvider() {
		super(ProjectMemberHelper.PROJECT_MEMBERS_PATH);
	}

	@Override
	public int position() {
		return 100;
	}

	@Override
	protected ILibraryItemProvider createProvider(
			AdapterFactory adapterFactory, ContentPackage contentPkg,
			String name) {
		return new ProjectMembersCategoryItemProvider(adapterFactory,
				contentPkg, name);
	}

	@Override
	protected String getCategoryLocalizedName() {
		return ProjectMemberUIResources.PROJECT_MEMBERS_GROUP;
	}

}
